import unittest.loader
from BeautifulReport import BeautifulReport
from Common.handle_path import test_case_path,outputs_report_path
import time


# 收集用例
collect_case=unittest.TestLoader().discover(test_case_path)
# 生成测试报告
bre = BeautifulReport(collect_case)
time = time.strftime("%Y%m%d%H%M%S", time.localtime())
bre.report("接口自动化测试-框架学习","report_{}.html".format(time),outputs_report_path)
